﻿using System.Web;
using System.Web.Mvc;
using Web.Filter;

namespace Web
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
#if RELEASE
            filters.Add(new HandleErrorAttribute());
#endif
            
            filters.Add(new ExceptionFilter());
        }
    }
}